#!/bin/sh

cd *-allapp

if [ ! -f "./src/main/resources/application.yml" ]; then
    echo "====>application.yml is not exist!!<====";
    exit 1
else
    echo -e "spring:\n  profiles:\n    active: "$1>./src/main/resources/application.yml
    tail ./src/main/resources/application.yml
    echo -e "\n====>update application.yml for "$1" environment<====";
fi





